package com.pingan.haofang.searchcloud.web.monitor.form;

import com.pingan.haofang.searchcloud.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

/**
 * @author ex-liuxianwen001
 * @date 2018/11/26
 * @since 1.0.0
 */
@ApiModel(description = "慢查询表单")
public class SlowQueryForm   {
    @ApiModelProperty( value = "索引id")
    private Long indexId;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty("开始时间(yyyy-MM-dd),默认当天")
    @NotBlank
    private String startDate = DateUtils.formatDate(new Date(), "yyyy-MM-dd");

    @ApiModelProperty("结束时间(yyyy-MM-dd)，默认当天")
    @NotBlank
    private String endDate = DateUtils.formatDate(new Date(), "yyyy-MM-dd");

    @ApiModelProperty("索引维度统计慢查询 按天统计")
    private  String date;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }


    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getIndexId() {
        return indexId;
    }

    public void setIndexId(Long indexId) {
        this.indexId = indexId;
    }
}
